package com.hnevc.yinqi;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class OneActivity extends AppCompatActivity {
    private Button denglu;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.oneactivity_layout);
        initView();
        initData();
        initEvent();
    }
    protected void initView(){
        denglu = findViewById(R.id.denglu);
    }
    protected void initData(){

    }
    protected void initEvent(){
        denglu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(OneActivity.this,TwoActivity.class);
                startActivity(intent);
            }
        });
    }
}
